package resilienceManager.qmul.gemom;

import java.io.File;

import javax.swing.filechooser.FileFilter;


/*
 * COPYRIGHT DISCLAIMER
 * Synopsis: All the source codes presented in this document are intellectual
 * properties of Queen Mary, University of London.
 * 
 * @year 2010
 * @author Peng Jiang, John Bigham, Jiayi Wu, Jinfu Wang------------QMUL
 * @version 1.0 
 */


public class XMLfilter extends FileFilter {

	@Override
	public boolean accept(File f) {
		
		return f.isDirectory() || f.getName().toLowerCase().endsWith(".xml");
	}

	@Override
	public String getDescription() {
		
		return ".xml files";
	}

}
